/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-11-22     yc       the first version
 */
#ifndef BSP_INC_BSP_ADC_H_
#define BSP_INC_BSP_ADC_H_


//#include "bsp.h"

#define SOLAR_VOLT_ADC_GPIO             GPIO_PIN_3
#define SOLAR_VOLT_ADC_PORT             GPIOF
#define SOLAR_VOLT_ADC_CLK_EN()         __HAL_RCC_GPIOF_CLK_ENABLE()
#define SOLAR_VOLT_ADC_CHANNEL          ADC_CHANNEL_9

#define BAT_VOLT_ADC_GPIO               GPIO_PIN_4
#define BAT_VOLT_ADC_PORT               GPIOF
#define BAT_VOLT_ADC_CLK_EN()           __HAL_RCC_GPIOF_CLK_ENABLE()
#define BAT_VOLT_ADC_CHANNEL            ADC_CHANNEL_14

#define MOTOR_V_CUR_ADC_GPIO            GPIO_PIN_5
#define MOTOR_V_CUR_ADC_PORT            GPIOF
#define MOTOR_V_CUR_ADC_CLK_EN()        __HAL_RCC_GPIOF_CLK_ENABLE()
#define MOTOR_V_CUR_ADC_CHANNEL         ADC_CHANNEL_15

#define MOTOR_H_CUR_ADC_GPIO            GPIO_PIN_6
#define MOTOR_H_CUR_ADC_PORT            GPIOF
#define MOTOR_H_CUR_ADC_CLK_EN()        __HAL_RCC_GPIOF_CLK_ENABLE()
#define MOTOR_H_CUR_ADC_CHANNEL         ADC_CHANNEL_4




void bsp_adc_Init(void);
void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc);

#endif /* BSP_INC_BSP_ADC_H_ */
